// StuderendeImpl.h: interface for the CStuderendeImpl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STUDERENDEIMPL_H__279C32D8_1CD2_46E6_BFEF_EE47849F909B__INCLUDED_)
#define AFX_STUDERENDEIMPL_H__279C32D8_1CD2_46E6_BFEF_EE47849F909B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "importado.h"
#include "database.h"
#include "AdresseImpl.h"
#include "Adresse.h"

#include <list>
#include <iostream>

class CStuderendeImpl  
{
public:
	CStuderendeImpl();
	virtual ~CStuderendeImpl();

	bool SetInfo();
	bool HentStatus(bool toStart, bstr_t * guid, bstr_t * status);
	bool HentIdentifikation(bool toStart, bstr_t * guid, bstr_t * identifikation);

	bstr_t get_GUID() {
		return m_guid;
	}
	void put_GUID(bstr_t newVal) {
		m_guid = newVal;
	}
	bstr_t get_BrugerNavn();
	void put_BrugerNavn(bstr_t  newVal);
	bstr_t get_Identifikation();
	void put_Identifikation(bstr_t  newVal);
	bstr_t get_Status();
	void put_Status(bstr_t  newVal);
	bstr_t get_CPRNr();
	void put_CPRNr(bstr_t  newVal);
	bstr_t get_OKDato();
	void put_OKDato(bstr_t  newVal);
	bstr_t get_SkoleDato();
	void put_SkoleDato(bstr_t  newVal);
	bstr_t get_SkoleId();
	void put_SkoleId(bstr_t  newVal);
	bstr_t get_Uddannelse();
	void put_Uddannelse(bstr_t  newVal);
	bstr_t get_Bemaerkning();
	void put_Bemaerkning(bstr_t  newVal);
	bstr_t get_Titel();
	void put_Titel(bstr_t  newVal);
	void put_Adresse(CComObject<CAdresse> * pAdresse);
	bstr_t get_Efternavn();
	void put_Efternavn(bstr_t  newVal);
	bstr_t get_Fornavn();
	void put_Fornavn(bstr_t  newVal);
	bstr_t get_Init();
	void put_Init(bstr_t  newVal);
private:
	bool m_firstStatus;
	bool m_firstIdent;
	_RecordsetPtr m_recordIdent;
	_RecordsetPtr m_recordStatus;

// Student data	
	bstr_t m_session;
	bstr_t m_init;
	bstr_t m_cpr;
	bstr_t m_fornavn;
	bstr_t m_efternavn;
	bstr_t m_titel;
	bstr_t m_skoleId;
	bstr_t m_skoleDato;
	bstr_t m_okDato;
	bstr_t m_bem;
	bstr_t m_uddan;
	bstr_t m_status;
	bstr_t m_ident;
	bstr_t m_bruger;
	bstr_t m_guid;
// Adresse data
//	std::list<CComObject<CAdresse>*> m_collAddr;
	CSimpleArray<CAdresseImpl*> m_collAddr;

};

#endif // !defined(AFX_STUDERENDEIMPL_H__279C32D8_1CD2_46E6_BFEF_EE47849F909B__INCLUDED_)
